package com.ktjy.mapper;

import com.ktjy.pojo.TbAssignRecord;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 分配记录表 Mapper 接口
 * </p>
 *
 * @author jjx
 * @since 2025-08-19
 */
public interface TbAssignRecordMapper extends BaseMapper<TbAssignRecord> {
    /**
     * 跟进用户Id统计分配线索数量
     * @param userId
     * @return
     */
    public int countAssignClueByUserId(@Param("userId") Long userId);

    /**
     * 跟进用户Id统计分配商机数量
     * @param userId
     * @return
     */
    public int countAssignBusinessByUserId(@Param("userId") Long userId);
}
